import request from '@/utils/request'

// 查询实验要求列表
export function listExperimentRequest(query) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest/list',
    method: 'get',
    params: query
  })
}

// 查询实验要求详细
export function getExperimentRequest(id) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest/' + id,
    method: 'get'
  })
}

// 新增实验要求
export function addExperimentRequest(data) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest',
    method: 'post',
    data: data
  })
}

// 修改实验要求
export function updateExperimentRequest(data) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest',
    method: 'put',
    data: data
  })
}

// 删除实验要求
export function delExperimentRequest(id) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest/' + id,
    method: 'delete'
  })
}


export function listRecipesRequest(id) {
  return request({
    url: '/ruoyiyinzheng/experimentRequest/recipes/' + id,
    method: 'get'
  })
}
